package com.wk1un2.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wk1un2.mapper.OrderDetailsMapper;
import com.wk1un2.service.OrderDetailsService;

@Service
public class OrderDetailsServiceImpl implements OrderDetailsService {
	@Autowired
	private OrderDetailsMapper OrderDetailsMapper;

	@Override
	public List<Map<String, Object>> getAll(Integer od_id) {
		// TODO Auto-generated method stub
		return OrderDetailsMapper.getAll(od_id);
	}

	@Override
	public Integer count() {
		// TODO Auto-generated method stub
		return OrderDetailsMapper.count();
	}

	@Override
	public Integer add(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return OrderDetailsMapper.add(map);
	}

	@Override
	public Integer update(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return OrderDetailsMapper.update(map);
	}

	@Override
	public Integer delete(int od_id) {
		// TODO Auto-generated method stub
		return OrderDetailsMapper.delete(od_id);
	}

	@Override
	public Integer addOrderForm(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return OrderDetailsMapper.addOrderForm(map);
	}

	

}
